package com.cy.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.cy.common.ResultResponse;
import com.cy.entity.SchoolInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
public interface ISchoolInfoService extends IService<SchoolInfo> {

    /**
     *分页查询所有学籍信息
     * @return
     * @throws Exception
     */
    ResultResponse selectPage(@Param("page") Integer page, @Param("limit") Integer limit)throws Exception;

    /**
     * 新增学籍信息
     * @param schoolInfo
     * @return
     * @throws Exception
     */
    ResultResponse addInfo(@RequestBody SchoolInfo schoolInfo)throws Exception;

    /**
     * 修改学籍信息
     * @param schoolInfo
     * @return
     * @throws Exception
     */
    ResultResponse updateInfo(@RequestBody SchoolInfo schoolInfo)throws Exception;

    /**
     * 删除学籍信息
     * @param Id
     * @return
     * @throws Exception
     */
    ResultResponse deleteInfo(@Param("Id") Integer Id)throws Exception;








}
